//package com.zp.feign.config;
//
//import org.springframework.context.annotation.Configuration;
//import org.springframework.web.servlet.config.annotation.CorsRegistry;
//import org.springframework.web.servlet.config.annotation.EnableWebMvc;
//import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter;
//
//@Configuration
//@EnableWebMvc
//public class WebConfig extends WebMvcConfigurerAdapter {
//	@Override
//	public void addCorsMappings(CorsRegistry registry) {
//		registry.addMapping("/")
//				.allowedOrigins("http://localhost:8082")
//				.allowedMethods("*") //"PUT", "DELETE"
//				.allowedHeaders("Content-Type", "x-requested-with", "Authorization")
////				.exposedHeaders("header1", "header2")
//				.allowCredentials(true).maxAge(3600);
//	}
//}